<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>{notempty name="meta_title"}
        {$meta_title}
        {else/}
        {php}isset($title_bar)?$title_bar:'';{/php}
        {/notempty}|TwoThink内容管理系统</title>

    <!-- Bootstrap -->
    <link href="__PUBLIC__/static/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <link href="__PUBLIC__/admin/css/twothink.css" rel="stylesheet">
    <!-- color -->
    <link href="__PUBLIC__/admin/css/default.css" rel="stylesheet">
    <!-- left nav -->
    <link href="__PUBLIC__/admin/css/sidebar-menu.css" rel="stylesheet">
    <!-- icon -->
    <link href="__PUBLIC__/static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
    {block name="style"}{/block}
    <!--[if lt IE 9]>
    <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <script src="__PUBLIC__/static/js/jquery.js"></script>
</head>
<body>
<nav class="navbar navbar-default navbar-fixed-top">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                <span class="sr-only">切换导航</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <button type="button" class="navbar-toggle collapsed navbar-toggle-left" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                <span class="sr-only">切换导航</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <div class="navbar-brand navbar-brand-center site-gridmenu-toggle" data-toggle="gridmenu">
                <div class="navbar-brand-logo-mini hidden-lg text-center"></div>
                <div class="navbar-brand-logo visible-lg"></div>
            </div>
            <!--<a class="navbar-brand" href="#">Twothink</a>-->
        </div>
        <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav">
                {volist name="__MENU__.main" id="menu"}
                    <li class="li-border {$menu.class|default=''}">
                        <a href="{$menu.url|url}"><i class="{$menu.icon}" aria-hidden="true"></i> {$menu.title}</a>
                    </li>
                {/volist}
            </ul>
            <ul class="nav navbar-nav navbar-right" style="margin-right:0px;">
                <li><a href="{:url('Clear/delcache')}">清空缓存</a></li>
                <li class="dropdown">
                    <a href="#" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><icon class="glyphicon glyphicon-user" aria-hidden="true"></icon></span></a>
                    <ul class="dropdown-menu">
                        <li><a href="#">您好，<em title="{:session('user_auth.username')}">{:session('user_auth.username')}</em></a></li>
                        <li><a href="{:url('User/updatePassword')}">修改密码</a></li>
                        <li><a href="{:url('User/updateNickname')}">修改昵称</a></li>
                        <li role="separator" class="divider"></li>
                        <li><a href="{:url('Login/logout')}">退出</a></li>
                    </ul>
                </li>
            </ul>
        </div><!--/.nav-collapse -->
</nav>
<!-- 边栏 -->
<div class="left-nav">
    <!-- 子导航 -->
    {block name="sidebar"}
    {include file="public/sidemenu" /}
    {/block}
    <!-- /子导航 -->
</div>
<!-- /边栏 -->
<div class="main-centent">
    <!-- 内容区 -->
    <div id="main" class="main">
        {block name="body"}{/block}
    </div>
    <!-- /内容区 -->
    <div class="footer-cen">
        <div class="copyright">
            <div class="fl">感谢使用<a href="http://www.twothink.cn" target="_blank">TwoThink</a>管理平台</div>
            <div class="fr">V{$Think.const.TWOTHINK_VERSION}</div>
        </div>
    </div>
</div> <!-- /container -->


<script src="__PUBLIC__/static/bootstrap/js/bootstrap.min.js"></script>
<!-- left nav -->
<script src="__PUBLIC__/admin/js/sidebar-menu.js"></script>
<!-- layer -->
<script src="__PUBLIC__/static/layer/layer.js"></script>

<script src="__PUBLIC__/admin/js/common.js"></script>
<script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1264324699'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s13.cnzz.com/z_stat.php%3Fid%3D1264324699' type='text/javascript'%3E%3C/script%3E"));</script>
<script>
    var _hmt = _hmt || [];
    (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?967de22a5e32072b64ca3f49f14fffb8";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
    })();
    $(function(){
        window_height = document.documentElement.clientHeight || document.body.clientHeight;;
        $("#main").css("min-height", window_height - 90);
    });
    $.sidebarMenu($('.sidebar-menu'));
</script>
{block name="script"}{/block}
<style>
    pre{
        margin-left: 250px;
        margin-top: 81px;
    }
</style>

</body>
</html>